package com.yunhe.common.constant;

/**
 * @ClassName ReminderConfigurationConsts
 * @Description TODO
 * @Author HeTao
 * @Date 2021/9/6 14:38
 * @Version 1.0
 **/
public class ReminderConfigurationConsts {

    // 短信模板代码定义
    public enum Custom_Configuration {
        AmountInfo("${amount_info}", "金额信息"),
        PaymentDate("${payment_date}", "缴费日期"),
        CompanyName("${company_name}", "企业名称"),
        OverdueTime("${overdue_time}", "逾期时间"),
        ;
        private String value;
        private String title;
        Custom_Configuration(String value, String title) {
            this.value = value;
            this.title = title;
        }
        public String value() {
            return value;
        }
        public String title() {
            return title;
        }
        public static String getTitle(String value) {
            ReminderConfigurationConsts.Custom_Configuration[] values = values();
            for (Custom_Configuration customConfiguration : values) {
                if(customConfiguration.value().equals(value)){
                    return customConfiguration.title();
                }
            }
            return null;
        }
    }
}
